import { createStore } from "vuex"
import user from "./modules/user"
import createPersistedState from "vuex-persistedstate"
const store = createStore({
    // state: {},
    // mutations: {},
    // getters: {},
    // actions: {},
    modules: {
        user,
    },
    plugins: [
        createPersistedState({
            storage: window.localStorage,
            reducer(state: any) {
                return {
                    user,
                }
            }
        })
    ]
})
export default store